<?php
/***************************************************************
*  Copyright notice
*  (c) 2009, jianyuzhu@gmail.com
*  All rights reserved
*  This script is part of the PPEMI project.
***************************************************************/

//
include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'base.item.category.class.php');

class CoreResourceBase extends BaseItemCategoryBase {
	
	//constructor
	function CoreResourceBase() {
		parent::BaseItemCategoryBase();
		
		$this->table = 'pp_resources';
		$this->prefix = 'resources_';
		$this->format = true;
		$this->format_check = false;
		$this->item_link = false;
		$this->search_fields = array('name');
		$this->search_type = 'or';
		$this->filter_fields = array();
		$this->table_to_category = 'pp_resources_to_categories';
		$this->table_category = 'pp_resources_categories';
	}
	
	//methods
	function addResource($data_array) {
		return $this->addItem($data_array);
	}
}
//
?>